<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>

<c:set var="CURRENT_SEQ_NO">
	<sec:authentication property='principal.users.seq_no' />
</c:set>

<div id="sidebar">
	<div style="position:fixed;">
		<ul>
			<c:if test="${CURRENT_SEQ_NO == 1 }" >
				<li>
					<h2>用戶管理</h2>
					<ul>				
						<c:choose>
							<c:when test="${SUBMENU == 1 }">
								<li class="current">用戶新增</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/admin/page/user/add.htm">用戶新增</a></li>
							</c:otherwise>
						</c:choose>
						<c:choose>
							<c:when test="${SUBMENU == 2 }">
								<li class="current">用戶查詢／修改／刪除</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/admin/page/user/mdy.htm">用戶查詢／修改／刪除</a></li>
							</c:otherwise>
						</c:choose>				
					</ul>
				</li>
			</c:if>
			
			<li>
				<h2>代碼維護</h2>
				<ul>
					<c:choose>
						<c:when test="${SUBMENU == 5 }">
							<li class="current">國別代碼</li>
						</c:when>
						<c:otherwise>
							<li><a href="${appPath }/admin/page/code/country.htm">國別代碼</a></li>
						</c:otherwise>
					</c:choose>
					
					<c:choose>
						<c:when test="${SUBMENU == 6 }">
							<li class="current">植物代碼</li>
						</c:when>
						<c:otherwise>
							<li><a href="${appPath }/admin/page/code/plant.htm">植物代碼</a></li>
						</c:otherwise>
					</c:choose>
					<%-- 
					<c:choose>
						<c:when test="${SUBMENU == 5 }">
							<li class="current">語言代碼</li>
						</c:when>
						<c:otherwise>
							<li><a href="${appPath }/admin/page/code/language.htm">語言代碼</a></li>
						</c:otherwise>
					</c:choose>
					--%>
				</ul>
			</li>
			
			<li>
				<h2>表單管理</h2>
				<ul>				
					<c:choose>
						<c:when test="${SUBMENU == 4 }">
							<li class="current">表單檢視</li>
						</c:when>
						<c:otherwise>
							<li><a href="${appPath }/admin/page/formview.htm">表單檢視</a></li>
						</c:otherwise>
					</c:choose>			
				</ul>
			</li>
			
			<c:if test="${CURRENT_SEQ_NO == 1 }" >
				<li>
					<h2>問題回報</h2>
					<ul>				
						<c:choose>
							<c:when test="${SUBMENU == 3 }">
								<li class="current">問題檢視</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/admin/page/report.htm">問題檢視</a></li>
							</c:otherwise>
						</c:choose>			
					</ul>
				</li>
			</c:if>
		</ul>
	</div>
</div>
